package com.rahwi.rahwi_server.DefineEntity;


import java.sql.Date;

/**
 * Created by dingning on 2021-12-29 16:38.
 * 帖子详情页的主楼自定义返回对象
 */
public class MainPostDetail {
    boolean is_post_by_admin; //这个楼是不是管理员发的(楼主是不是管 理员)
    boolean flag = true; //flag和showindex和主页面的一样， 用来操作图片的
    int showindex = 1;
    String[] images; //主楼图片
    String content;
    boolean onLandlord = false; //是否只看楼主 我会把他初始化为 false，所以只返回false就行
    int id; //主楼id
    boolean is_official = false; //是否是官方贴 这就是一个帖子的属性而 已，管理员可以设置官方贴和加精
    boolean isElite = false; //是否是精华帖
    boolean delete_private = false; //有没有删除权限 如果当前的登陆用户 是楼主或管理员就返回true
    String user_photo; //楼主头像
    boolean is_voted = false; //是否点过赞
    Date created_at;
    int like_count;//点赞个数
    boolean is_admin = false; //楼主是否是管理员
    String user_nickname; //楼主名称
    String title;
    boolean is_collected = false; //是否收藏

    public boolean isIs_post_by_admin() {
        return is_post_by_admin;
    }

    public void setIs_post_by_admin(boolean is_post_by_admin) {
        this.is_post_by_admin = is_post_by_admin;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getShowindex() {
        return showindex;
    }

    public void setShowindex(int showindex) {
        this.showindex = showindex;
    }

    public String[] getImages() {
        return images;
    }

    public void setImages(String[] images) {
        this.images = images;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isOnLandlord() {
        return onLandlord;
    }

    public void setOnLandlord(boolean onLandlord) {
        this.onLandlord = onLandlord;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isIs_official() {
        return is_official;
    }

    public void setIs_official(boolean is_official) {
        this.is_official = is_official;
    }

    public boolean isElite() {
        return isElite;
    }

    public void setElite(boolean elite) {
        isElite = elite;
    }

    public boolean isDelete_private() {
        return delete_private;
    }

    public void setDelete_private(boolean delete_private) {
        this.delete_private = delete_private;
    }

    public String getUser_photo() {
        return user_photo;
    }

    public void setUser_photo(String user_photo) {
        this.user_photo = user_photo;
    }

    public boolean isIs_voted() {
        return is_voted;
    }

    public void setIs_voted(boolean is_voted) {
        this.is_voted = is_voted;
    }

    public Date getCreated_at() {
        return created_at;
    }

    public void setCreated_at(Date created_at) {
        this.created_at = created_at;
    }

    public int getLike_count() {
        return like_count;
    }

    public void setLike_count(int like_count) {
        this.like_count = like_count;
    }

    public boolean isIs_admin() {
        return is_admin;
    }

    public void setIs_admin(boolean is_admin) {
        this.is_admin = is_admin;
    }

    public String getUser_nickname() {
        return user_nickname;
    }

    public void setUser_nickname(String user_nickname) {
        this.user_nickname = user_nickname;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isIs_collected() {
        return is_collected;
    }

    public void setIs_collected(boolean is_collected) {
        this.is_collected = is_collected;
    }
}
